package com.ln.asset.core.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 维修表
 * </p>
 *
 * @author jijiaqi
 * @since 2022-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Maintain对象", description="维修表")
public class Maintain implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "报修人")
    private String muserid;

    @ApiModelProperty(value = "报修部门")
    private String did;

    @ApiModelProperty(value = "报修日期")
    private LocalDateTime mdate;

    @ApiModelProperty(value = "报修原因")
    private String cause;

    @ApiModelProperty(value = "维修单号")
    private String odd;

    @ApiModelProperty(value = "维修人")
    private String mmuserid;

    @ApiModelProperty(value = "维修金额")
    private Double mprice;

    @ApiModelProperty(value = "维修内容")
    private String content;

    @ApiModelProperty(value = "维修状态（0.维修中 1.已维修）")
    private Integer mstate;

    @ApiModelProperty(value = "完成时间")
    private LocalDateTime mmdate;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "选择资产")
    private Integer pid;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "故障原因")
    private String mal;

    @ApiModelProperty(value = "维修方式")
    private String way;


}
